setEffectSource

abstract fun setEffectSource(effectBlock: DesignBlock, source: DesignBlock?)

Set the block that an effect block reads, such as the map of a displacement map effect. The source still draws on its own. It is read without its position and rotation, and also when it is hidden. Required scope: "appearance/effect" on every block the effect is attached to. Experimental: this API may change in a minor release.

Parameters

effectBlock

the effect block to update. Only the displacement map effect reads a source.

source

a graphic, text or group block, or null to remove the source.